import request from '@/common/http/axios';

//测试列表
export const getSlList = data => {
  return request({
    url: '/shenlun-test/list',
    method: 'post',
    data,
  });
};
// 获取教师列表
export const getTeacherList = () => {
  return request({
    url: '/admin/upms/sysUser/list',
    method: 'post',
    data: {
      orderParam: [
        {
          fieldName: 'createTime',
          asc: true,
        },
      ],
      pageParam: {
        pageNum: 1,
        pageSize: -1,
      },
      sysUserDtoFilter: {
        userType: 1,
      },
    },
  });
};
//分配教师
export const assignTeacher = data => {
  return request({
    url: '/shenlun-test/assignTeacher',
    method: 'post',
    data,
  });
};
